
#ifndef  BREAKPOINTSERVICE_H
#define  BREAKPOINTSERVICE_H
#include <string>
#include <ostream>


class IBreakPoint;
class IBreakPointState;
class BreakPointService {
public:
    BreakPointService();
    ~BreakPointService();

    int start();
    int stop();

    int connected();
    int disconnected();

    int receivedLoginResp(const char * msg);
    int receivedNormalResp(const char * msg);
    int receivedBreakPointResp(const char * msg);

    int timeout();

    //for test
    const IBreakPointState & getState() const;

private:
    int sendMessage(const char * msg);

private: 
    IBreakPointState * state;
    IBreakPoint * breakPoint;
};

#endif   /* BREAKPOINTSERVICE_H */
